<template>
  <demo-block title="基础用法">
    <m-table :data="tableData" @cell-click="onCellClick" border>
      <m-table-column
        v-for="(c, i) in tableColumns"
        :key="i"
        :prop="c.prop"
        :label="c.label"
        :sortable="c.sortable"
        :min-width="c.width"
        :fixed="c.fixed"
        :align="c.align"
        :nowrap="true"
      />
    </m-table>
  </demo-block>
</template>

<script setup>
import { ref, computed } from 'vue';
import MTable from '../index';
import MTableColumn from '../../table-column/index';

const onCellClick = (row, column, cell) => {
  console.log('row,column,cell :>> ', row, column, cell);
};

const tableData = ref([
  {
    studentId: '3a0a8c44-1080-d40c-9600-128f7a49d973',
    studentName: 'ce111',
    studentCertCode: '18393941ww1',
    studentPhoto: '3a0f8daf-7273-da67-b8cc-056ad1c562e9',
    totalScore: '288.5',
    ranking: 1,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdaa-c955-e95a-ab537665e4f8',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '89.5',
        gradeName: 'B',
        ranking: '1',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdaa-49d0-7a8b-24324390f9f8',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '99',
        gradeName: 'A',
        ranking: '1',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdab-3c22-ece6-f27ae1f74718',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '100',
        gradeName: '满分',
        ranking: '1',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 1,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'A',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 1,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': '满分',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 1,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0a8c44-186d-8200-4648-e21d20668bd4',
    studentName: '杨凡',
    studentCertCode: '610125199402060514',
    studentPhoto: '3a0f116a-95ce-35eb-0f87-d0f3d3224ab1',
    totalScore: '236',
    ranking: 5,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdab-ca85-fe5e-749e50050d18',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '89',
        gradeName: 'B',
        ranking: '2',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdac-7ffa-5671-10b25da00d60',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '69',
        gradeName: 'C',
        ranking: '5',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdac-8c27-e27d-557955a79656',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '78',
        gradeName: 'C',
        ranking: '4',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 2,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 69,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'C',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 5,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 78,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'C',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 4,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0d2958-f618-5a32-8882-07cdefce2b6e',
    studentName: '556',
    studentCertCode: '556',
    studentPhoto: null,
    totalScore: '253.5',
    ranking: 2,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdad-610c-82bf-158b641dcf83',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '89',
        gradeName: 'B',
        ranking: '3',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdad-d135-8e31-d15d151f6a4c',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '89.5',
        gradeName: 'B',
        ranking: '2',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdae-b883-ba5a-a5f6f0471f9b',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '75',
        gradeName: 'C',
        ranking: '6',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 3,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 89.5,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'B',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 2,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 75,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'C',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 6,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0d295b-ad4e-e7de-f280-4c95dd2de8bb',
    studentName: '666',
    studentCertCode: '666',
    studentPhoto: null,
    totalScore: '239',
    ranking: 4,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdae-bfba-1354-136bb798a4c2',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '87',
        gradeName: 'B',
        ranking: '4',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdaf-7d54-106d-3ba471cb06da',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '56',
        gradeName: 'D',
        ranking: '8',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdaf-ee16-e38c-acecc0032b34',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '96',
        gradeName: 'A',
        ranking: '2',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 87,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 4,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 56,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'D',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 8,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 96,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'A',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 2,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0e9be6-6674-ae08-9a1a-fd8f778587f5',
    studentName: '杜洪宝',
    studentCertCode: '202311011510',
    studentPhoto: null,
    totalScore: '232',
    ranking: 6,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdaf-76b3-098d-b8ebd1ebfc0f',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '85',
        gradeName: 'B',
        ranking: '7',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb0-517f-506e-2ddc3a55f40f',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '78',
        gradeName: 'C',
        ranking: '4',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb0-2d96-4415-a9701ccfd469',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '69',
        gradeName: 'C',
        ranking: '7',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 85,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 7,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 78,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'C',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 4,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 69,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'C',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 7,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0f1168-90ee-06d4-8c96-cbaf74acc79e',
    studentName: '0713',
    studentCertCode: '0713',
    studentPhoto: '3a0f1168-90fc-eaf5-bd68-db6715f538aa',
    totalScore: '231',
    ranking: 7,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdb1-71e0-5168-38d0a4963285',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '87',
        gradeName: 'B',
        ranking: '5',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb1-3a2b-6291-7bf99cd0e4ad',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '58',
        gradeName: 'D',
        ranking: '6',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb2-225e-d00a-bce07671d429',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '86',
        gradeName: 'B',
        ranking: '3',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 87,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 5,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 58,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'D',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 6,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 86,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'B',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 3,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0f116d-6b44-22a9-2332-997b7dd7b0e2',
    studentName: 'ceshi2',
    studentCertCode: '20230712001',
    studentPhoto: '3a0f116d-6b57-73c3-7d05-f2afa4442827',
    totalScore: '118',
    ranking: 8,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdb2-70e9-6a3c-8e595c8a04bc',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '0',
        gradeName: 'C',
        ranking: '8',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb3-41f6-d59c-a95813a9ece3',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '58',
        gradeName: 'D',
        ranking: '7',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb3-161d-0201-c8f486598e42',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '60',
        gradeName: 'C',
        ranking: '8',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 0,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'C',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 8,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 58,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'D',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 7,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 60,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'C',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 8,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0f116d-7708-c146-ec10-bf1d22899b7a',
    studentName: 'cdsfsfas',
    studentCertCode: '20230712002',
    studentPhoto: '3a0f116d-7714-00f0-43d2-c7b07e010dc0',
    totalScore: '250',
    ranking: 3,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdb4-2adb-d7d2-56eb84f67114',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '86',
        gradeName: 'B',
        ranking: '6',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb4-8f08-c08a-b35481ea8dcf',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '88',
        gradeName: 'B',
        ranking: '3',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb5-ef46-86ff-bb09b94506a8',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '76',
        gradeName: 'C',
        ranking: '5',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 86,
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 'B',
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 6,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 88,
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 'B',
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 3,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 76,
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 'C',
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 5,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0f69d7-284a-7674-0345-3cbc46a372a8',
    studentName: '07132',
    studentCertCode: '07132',
    studentPhoto: null,
    totalScore: '0',
    ranking: 9,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdb5-3d1a-987f-f713ba3e4456',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '',
        gradeName: null,
        ranking: '9',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb6-f0b8-78cf-66690531bb68',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '',
        gradeName: null,
        ranking: '9',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb6-1758-a597-e59fea5fa608',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '',
        gradeName: null,
        ranking: '9',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': '',
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': null,
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 9,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': '',
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': null,
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 9,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': '',
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': null,
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 9,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
  {
    studentId: '3a0f7e2f-44d0-4783-c9b9-baf1d654f5b1',
    studentName: 'test1208',
    studentCertCode: 'test_1208',
    studentPhoto: '3a0f98b9-21ca-cbba-8e29-31e7a9c504b9',
    totalScore: '0',
    ranking: 10,
    isRead: false,
    scoreStudentDetails: [
      {
        id: '3a11d89d-bdb7-5910-3dfc-05725d6a415c',
        subjectId: '3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
        subjectName: '政治',
        score: '',
        gradeName: null,
        ranking: '10',
        averageScore: '76.6',
        highestScore: '89.5',
        lowestScore: '0',
      },
      {
        id: '3a11d89d-bdb7-62a8-40ad-2f62793d5a9d',
        subjectId: '3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
        subjectName: '英语',
        score: '',
        gradeName: null,
        ranking: '10',
        averageScore: '74.4',
        highestScore: '99',
        lowestScore: '56',
      },
      {
        id: '3a11d89d-bdb7-3741-004f-0483c03faa4d',
        subjectId: '3a0e91d1-ba63-5972-6110-9c71c7db08f2',
        subjectName: '数学',
        score: '',
        gradeName: null,
        ranking: '10',
        averageScore: '80',
        highestScore: '100',
        lowestScore: '60',
      },
    ],
    subjectRankingSettings: null,
    'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': '',
    'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': null,
    'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 10,
    'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 76.6,
    'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf': 89.5,
    'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': '',
    'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': null,
    'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 10,
    'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 74.4,
    'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d': 99,
    'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2': '',
    'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2': null,
    'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 10,
    'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 80,
    'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2': 100,
  },
]);

const tableColumns = computed(() => [
  {
    prop: 'studentName',
    label: '姓名',
    width: 80,
    sortable: true,
    fixed: true,
  },
  {
    prop: 'studentCertCode',
    label: '学号',
    width: 90,
    sortable: true,
    fixed: true,
  },
  {
    prop: 'score,3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
    label: '政治',
    width: 80,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'gradeName,3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
    label: '政治等级',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'ranking,3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
    label: '政治排名',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'averageScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
    label: '政治平均分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'highestScore,3a0e91d1-ba53-2161-d245-87f46ad0a6cf',
    label: '政治最高分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'score,3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
    label: '英语',
    width: 80,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'gradeName,3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
    label: '英语等级',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'ranking,3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
    label: '英语排名',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'averageScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
    label: '英语平均分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'highestScore,3a0e91d1-ba61-a3be-51aa-12d5efd4737d',
    label: '英语最高分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'score,3a0e91d1-ba63-5972-6110-9c71c7db08f2',
    label: '数学',
    width: 80,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'gradeName,3a0e91d1-ba63-5972-6110-9c71c7db08f2',
    label: '数学等级',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'ranking,3a0e91d1-ba63-5972-6110-9c71c7db08f2',
    label: '数学排名',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'averageScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2',
    label: '数学平均分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'highestScore,3a0e91d1-ba63-5972-6110-9c71c7db08f2',
    label: '数学最高分',
    width: 100,
    align: 'center',
  },
  {
    prop: 'totalScore',
    label: '学生总分',
    width: 100,
    sortable: true,
    align: 'center',
  },
  {
    prop: 'ranking',
    label: '总分排名',
    width: 100,
    sortable: true,
    align: 'center',
  },
]);
</script>
